package com.gxa.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

/**
 * 接收系统用户信息，添加用户传输实体
 */
public class CourseSaveDTO {

    /**
     * 课程名称
     */
    private String courseName;
    /**
     * 教练姓名
     */
    private String courseCoach;
    /**
     * 上课时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private String courseTime;
    /**
     * 班容量
     */
    private Integer courseCount;
    /**
     * 已报人数
     */
    private Integer courseAlready;
    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Timestamp courseDate;

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getCourseCoach() {
        return courseCoach;
    }

    public void setCourseCoach(String courseCoach) {
        this.courseCoach = courseCoach;
    }

    public String getCourseTime() {
        return courseTime;
    }

    public void setCourseTime(String courseTime) {
        this.courseTime = courseTime;
    }

    public Integer getCourseCount() {
        return courseCount;
    }

    public void setCourseCount(Integer courseCount) {
        this.courseCount = courseCount;
    }

    public Integer getCourseAlready() {
        return courseAlready;
    }

    public void setCourseAlready(Integer courseAlready) {
        this.courseAlready = courseAlready;
    }

    public Timestamp getCourseDate() {
        return courseDate;
    }

    public void setCourseDate(Timestamp courseDate) {
        this.courseDate = courseDate;
    }

    @Override
    public String toString() {
        return "CourseSaveDTO{" +
                "courseName='" + courseName + '\'' +
                ", courseCoach='" + courseCoach + '\'' +
                ", courseTime='" + courseTime + '\'' +
                ", courseCount=" + courseCount +
                ", courseAlready=" + courseAlready +
                ", courseDate=" + courseDate +
                '}';
    }
}
